<?php


namespace App\Models;


use App\Engine\BaseModel;

class BindInvite extends BaseModel
{
    protected $table = 'bind_invite';
    public $timestamps = false;

    protected $fillable = [
        'uid',
        'invite_id',
        'date',
        'state'
    ];

    public $with=["user","invite"];

    public function invite()
    {
        return $this->belongsTo("App\Models\User","uid","id")->select(["id","nickname","avatar","phone"]);
    }

}
